﻿<%@ Page Title="" Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="LazyLoad.aspx.cs" Inherits="YUIAspNetDemo.DataTable.LazyLoad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Controls : LiveDemo : DataTable : Lazy loading</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>DataTable lazy loading through ajax</h1>
    
    <p>In this example, the grid is loaded through ajax, using a HttpHandler.</p>
    
    <p>Paging is enabled automatically, by specifying a value for the ResultsPerPage attribute.</p>
    
    <p>
        <yui:DataTable ID="tbl" runat="server" ResultsPerPage="5" DefaultSortColumnKey="id" DefaultSortOrder="Ascending">
            <Columns>
                <yui:DataTableColumn Key="id" Text="ID Customer" />
                <yui:DataTableColumn Key="name" Text="Customer Name" />
            </Columns>
        </yui:DataTable>
    </p>
</asp:Content>
